package com.example.movie.data.video.factory

import android.content.Context
import com.dueeeke.videoplayer.render.IRenderView
import com.dueeeke.videoplayer.render.RenderViewFactory
import com.dueeeke.videoplayer.render.TextureRenderView
import com.example.movie.ui.video.view.VideoRenderView

class VideoRenderViewFactory : RenderViewFactory() {

    override fun createRenderView(context: Context): IRenderView {
        return VideoRenderView(TextureRenderView(context))
    }

    companion object {
        fun create(): VideoRenderViewFactory {
            return VideoRenderViewFactory()
        }
    }
}